/*
 * FileName:    TdukerrkMastAction.java
 * Description: 履历记录
 * History:     2012-11-14
 */
package jp.co.sn.mml.master.tdukerrk.action;

import java.util.List;

import com.opensymphony.xwork2.validator.annotations.VisitorFieldValidator;

import com.sn.system.common.action.BaseAction;
import com.sn.system.common.command.Page;
import jp.co.sn.mml.pojo.tdukerrk.Tdukerrk;


public class TdukerrkMastAction extends BaseAction {

	/** 一覧データー **/
	private Page compageData;
	
	private List<Tdukerrk> tdukerrkList;
	
	private Tdukerrk tdukerrk;
	
	public String execute() throws Exception {
		compageData=this.commonService.putDataToPage(this.commonService.selectAll(Tdukerrk.class));
		return SUCCESS;
	}
	
	public String save() throws Exception {
		this.commonService.save(this.tdukerrk);
		return SUCCESS;
	}
	
	public String del() throws Exception {
		if(this.dofindObj())
		{
			this.commonService.delete(this.obj);
		}
		return SUCCESS;
	}

	public Tdukerrk getTdukerrk() {
		return tdukerrk;
	}

	@VisitorFieldValidator(shortCircuit = true)
	public void setTdukerrk(Tdukerrk tdukerrk) {
		this.tdukerrk = tdukerrk;
	}
	
	public Page getCompageData() {
		return compageData;
	}

	public void setCompageData(Page compageData) {
		this.compageData = compageData;
	}
}
